﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace dayso
{
    class Program
    {
        static void Main(string[] args)
        {
            day_so_nguyen dsn = new day_so_nguyen();
            dsn.nhap();
            dsn.hienthi();
            Console.ReadKey();
        }
    }
    //Dinh nghia lop day so
    class day_so_nguyen
    { 
        // du lieu
        int spt; // so phan tu cua day so
        int[] mpt; // khai bao mang

        //hanh vi
        public day_so_nguyen()
        {
            mpt = new int[100];
        }

        public void nhap()
        {
            Console.Write("Nhap so phan tu cua day so: ");
            spt = Convert.ToInt16(Console.ReadLine());
            for (int i = 0; i < spt; i++)
            {
                Console.Write("Nhap phan tu thu"+(i+1)+": ");
                mpt[i] = Convert.ToInt16(Console.ReadLine());
            }
        }
        public void hienthi()
        {
            for (int i = 0; i < spt; i++)
            {
                Console.Write(mpt[i]);
            }  
        }
    }
}
